BIN=ProcessPool
SRC=$(shell ls  *.cc) # 显示所有.cc

CC=g++ 
FLAGS=-c -Wall -std=c++11
LDFLAGS=-o
OBJ=$(SRC:.cc=.o)

$(BIN):$(OBJ)
	$(CC) $(LDFLAGS) $@ $^
%.o:%.cc
	$(CC) $(FLAGS)  $<

.PHONY:clean
clean:
	rm -rf $(BIN) $(OBJ)
	
.PHONY:test
test:
	@echo $(SRC)
	@echo $(OBJ)

